export default {
  // 这个是登录使用的，但可能会被弃用
  
  state: {
    avatar:"",
    loginId:"",
    identity:localStorage.getItem("loginData") ? JSON.parse(localStorage.getItem("loginData") || "").identity : null,
    isLogin:localStorage.getItem("loginData")?true:false,
	  token:localStorage.getItem("loginData") ? JSON.parse(localStorage.getItem("loginData") || "").token : null,
    menuList:[],

    menu_list:[
      {
        id:"",
        name:"",
        child:[{
          id:"",
          name:"",
          child:[{
            id:"",
            name:""
          }]
        }]
      }
    ],
    job_industry: [
      {
        id:"",
        value: "",
        label: "",
        children: [
          {
            id:"",
            value: "",
            label: ""
          }
        ]
      }
    ]
    
  },
  getters: {
    
  },
  mutations: {
    
    loginState(state:any,data:any){
      state.avatar=data.avatar
      state.loginId=data.loginId
      state.identity=data.identity
      state.isLogin=true
      state.token=data.token
    },
    loginOut(state:any){
      state.avatar=""
      state.loginId=""
      state.identity=""
      state.isLogin=false
      state.token=""
    },
    
  },
  actions: {
    
  },
  modules: {
  }
}
